import Vue from 'vue'
import App from './App.vue'
import store from '@/store'
import router from '@/router'
import HttpRequest from '@/utils/request'
import lodash from 'lodash'
import Antd from 'ant-design-vue'
import '@/utils'
import 'ant-design-vue/dist/antd.css';
// import '@/core/antd/lazy_use.js'
import '@/components'
import './global.less'
import './utils/directives'
import { registerMicroApps } from 'qiankun';
Vue.config.productionTip = false
Vue.prototype.$lodash = lodash

Vue.use(HttpRequest)
Vue.use(Antd)

new Vue({
  render: h => h(App),
  store,
  router
}).$mount('#app')

registerMicroApps([
  {
    name: 'accountApplication',
    entry: '//localhost:10000',
    container: '#container',
    activeRule: '/account',
  },
  {
    name: 'settingApplication',
    entry: '//localhost:10001',
    container: '#container',
    activeRule: '/setting',
  },
])
// start();
